<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>th:remove test</title>
</head>
<body>
<div>
    <h3>th:remove 可选值为：all, tag, body, all-but-first or none</h3>

    <div>移除所有内容：th:remove="all"</div>
    <div th:remove="all">
        <p>123</p>
        <p>312</p>
    </div>

    <div>移除标签，保留内容：th:remove="tag"</div>
    <div th:remove="tag">
        移除标签
    </div>

    <div>移除标签，保留内容：th:remove="body"</div>
    <div th:remove="body">
        11
    </div>

    <div>移除所有，保留第一行标签及内容</div>
    <div th:remove="all-but-first">
        <p>1</p>
        <p>2</p>
        <p>3</p>
    </div>

    <div>不移除任何东西</div>
    <div th:remove="none">
        <p>1</p>
    </div>
</div>
</body>
</html>